package cn.b.sky.shop.activiti.dao;

import cn.b.sky.shop.activiti.model.WorkFlowHistory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WorkFlowHistoryDao {
  List<WorkFlowHistory> selectWorkFlowHistoryByBusinessKey(@Param("businessKey") String businessKey,
                                                           @Param("tenantId") String tenantId);

  List<WorkFlowHistory> selectWorkFlowHistoryByProcessInstanceId(@Param("processInstanceId") String processInstanceId,
                                                                 @Param("tenantId") String tenantId);

  List<WorkFlowHistory> selectWorkFlowHistoryByBusinessKeyAndTaskDefineKey(@Param("tenantId") String tenantId,
                                                                           @Param("businessKey") String businessKey, @Param("taskDefineKey") String taskDefineKey);

  void insertWorkFlowHistory(WorkFlowHistory workFlowHistory);
}
